import request from '@/utils/request'
// 新增T0实物原始订单表
export function synInventoryType(data) {
  return request({
    url: '/product/inventoryWarehouse/synInventoryType',
    method: 'post',
    data: data
  })
}
// 新增品牌成本表
export function syncostbysku(data) {
  return request({
    url: '/product/inventoryWarehouse/syncostbysku',
    method: 'post',
    data: data
  })
}
// 查询TI0 sku库存列表
export function listDwd(query) {
  return request({
    url: '/product/inventoryWarehouse/list',
    method: 'get',
    params: query
  })
}
// 查询TI0 sku库存列表
export function autoUpdateInventory() {
  return request({
    url: '/product/inventoryWarehouse/autoUpdateInventory',
    method: 'post',
    
  })
}
// 查询TI0 sku库存详细
export function getDwd(id) {
  return request({
    url: '/product/dwd/' + id,
    method: 'get'
  })
}

// 新增TI0 sku库存
export function addDwd(data) {
  return request({
    url: '/product/dwd',
    method: 'post',
    data: data
  })
}

// 修改TI0 sku库存
export function updateDwd(data) {
  return request({
    url: '/product/dwd',
    method: 'put',
    data: data
  })
}

// 删除TI0 sku库存
export function delDwd(id) {
  return request({
    url: '/product/dwd/' + id,
    method: 'delete'
  })
}
